package com.etl.dataflow.executor;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dx
 * @since 2022/4/20
 */
@SpringBootApplication(scanBasePackages = "com.etl.dataflow.executor")
@RestController
public class ExecutorApplication {
    public static void main(String[] args) {
        try {
            SpringApplication.run(ExecutorApplication.class, args);
        } catch (Throwable e) {
            e.printStackTrace();
        }
    }

    @GetMapping("/")
    public String home() {
        return "Executor is running.";
    }
}
